package com.yphone.ui.ysj.view;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

import com.zzkj.yunphone.R;

import java.util.ArrayList;

public class YSJIndexView extends LinearLayout {
    private final Context mContext;
    private ArrayList<View> views;
    private FrameLayout mainFraly;

    public YSJIndexView(Context context) {
        super(context);
        this.mContext = context;
        intitview();
        initdata();
        initListener();
    }


    public YSJIndexView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        this.mContext = context;
        intitview();
        initdata();
        initListener();
    }

    public YSJIndexView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.mContext = context;
        intitview();
        initdata();
        initListener();
    }


    private void intitview() {
        LayoutInflater.from(getContext()).inflate(R.layout.view_ysj_indext, this);
        this.mainFraly = (FrameLayout) findViewById(R.id.index_framlay);
//
        this.views = new ArrayList<View>();
        this.views.add(new YSJCareView(this.mContext));
        this.mainFraly.addView((View) this.views.get(0));
//        for (View view : this.views) {
//            view.setVisibility(GONE);
//        }

    }

    private void initdata() {

    }

    private void initListener() {

    }


}
